/**
 * @Author: panda
 * @Date: 2022-05-18 10:43
 * @Description: 主页路由
 */
import type {AppRouteModule} from '@/router/types';

const home: AppRouteModule = {
  // 主页视图，默认进入
  path: '/',
  name: 'home',
  component: () => import('@/views/HomeView.vue'),
  redirect: 'study',
  meta: {
    title: '首页'
  },
  // 主页子路由
  children: [
    // 升学
    {
      path: '/study',
      name: 'study',
      meta: {
        title: '升学'
      },
      component: () => import('@/views/StudyView.vue'),
    },
    // 考公
    {
      path: '/servant',
      name: 'servant',
      component: () => import('@/views/ServantView.vue'),
      meta: {
        title: '考公'
      }
    },
    // 考证
    {
      path: '/certificate',
      name: 'certificate',
      component: () => import('@/views/CertificateView.vue'),
      meta: {
        title: '考证'
      }
    },
    // 竞赛
    {
      path: '/competition',
      name: 'competition',
      component: () => import('@/views/CompetitionView.vue'),
      meta: {
        title: '竞赛'
      }
    },
  ]

};

export default home;
